<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/6/13
  Time: 21:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%

  request.setCharacterEncoding("utf-8");

%>
<html>
<head>
    <title>this is register page!</title>
  <style>
  body{
  /*background-image:url(../../resources/image/5.jpg)*/
    padding: 0;
    margin: 0;
    position: fixed;
  }

  a{
  text-decoration: none;
  color:#000;
  font-size: 20px;
  }
  form{
  /*margin-left: 400px;*/
  /*margin-top: 150px;*/
  position: absolute;
    top:190px;
    left:400px;
  }
  input{
  height:35px;
  font-size: 20px;
  color:#2e432b;
  }
  </style>
</head>
<body>
<img src="../resources/image/3.jpg" style="position:relative;">
<span style="position:absolute;top: 120px;left: 550px;font-size: 25px;color:#1b4b20">注册页面</span>
<sf:form method="post" modelAttribute="admin" action="/register">
  <span style="font-size: 20px">用&nbsp;&nbsp;&nbsp;户&nbsp;&nbsp;&nbsp;名</span>：&nbsp; <sf:input type="text" path="username"/><br/><br/>
  <span style="font-size: 20px">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</span>：&nbsp;&nbsp;<sf:input type="password" path="password"/><br/><br/><br/>
  <input type="submit" name="submit" value="注册" style="width:100px;height:30px;background-color: #31a425;border:1px solid #31a425;margin-left: 90px;color: #fff"/>
  <span style="width:100px;height:30px;display: inline-block;margin-left: 30px;text-align: center;line-height: 30px;background-color:#c5600f;"><a href="/login">登录</a></span>
</sf:form>
</body>
</html>
